package mapper;

import entity.*;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DbServerMapper {
    //@Select("select 1 from user_control where mac_code=#{macCode} and emp_code=#{empCode} limit 1")
    Integer isHasAuthority(@Param("macCode") String macCode, @Param("empCode") String empCode);

    //@Select("select 1 from user_control where mac_code=#{macCode} and emp_code=#{empCode} limit 1")
    Integer hasAuthority(UserControl userControl);

    List<Item> getItemsByWipEntity(@Param("wipEntity") String wipEntity);
}
